Skip to content

test: property-based tests for pure cores (StreamData + proptest)#19

Merged
markovejnovic merged 23 commits into
mainfrom
test/unit-tests
Jun 24, 2026
Merged

test: property-based tests for pure cores (StreamData + proptest)#19
markovejnovic merged 23 commits into
mainfrom
test/unit-tests

Conversation

@markovejnovic

@markovejnovic markovejnovic commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/hyper/suid_helper/dmsetup.ex 50.00% 3 Missing ⚠️
lib/sys/linux/subid.ex 0.00% 1 Missing ⚠️
native/suidhelper/src/main.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

…ent scan

The previous hardening layered a raw byte-scan on top of the original
components() pass plus an is_absolute() branch -- three mechanisms for one
job. On this Linux-only crate components() catches nothing the segment scan
doesn't (no path prefixes; '..' is caught by the segment != b".." test), so
drop it: strip the leading '/' and require every '/'-separated segment to be
a plain name. Behavior is unchanged; all 6 SafePath properties still pass.
Place the integration test at tests/util/safe_path.rs to mirror
src/util/safe_path.rs. Cargo only auto-discovers test files at the top of
tests/, so an explicit [[test]] target (name = safe_path) points at the
nested path; cargo test --test safe_path is unchanged.
@markovejnovic markovejnovic merged commit 59190e5 into main Jun 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant